package com.briup.run.web.servlet;

import com.briup.run.util.ImageUtil;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Auther: vanse(lc))
 * @Date: 2022/10/7-10-07-10:49
 * @Description：验证码接口
 */
// @Auth("/authImage")
@WebServlet("/authImage")
public class AuthImageServlet extends HttpServlet {
    // img src 默认是get请求
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        // 调用工具类 产生验证码
            // gui编程代码
            // 第三方jar
        ImageUtil.createAuthImg(req,resp);
    }
}
